package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 对象存储对象 sys_oss
 * 
 * @author zouhuu
 * @date 2022-07-24
 */
public class SysOss extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long ossId;

    /** 文件名 */
    @Excel(name = "文件名")
    private String fileName;

    /** 原文件名 */
    @Excel(name = "原文件名")
    private String originalName;

    /** 文件后缀 */
    @Excel(name = "文件后缀")
    private String fileSuffix;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long fileSize;

    /** URL地址 */
    @Excel(name = "URL地址")
    private String url;

    /** 来源(service后台 client客户端) */
    @Excel(name = "来源(service后台 client客户端)")
    private String source;

    /** 服务商(aliyun阿里云 qiniu七牛云) */
    @Excel(name = "服务商(aliyun阿里云 qiniu七牛云)")
    private String service;

    /** 删除状态 */
    private Integer delFlag;

    /** 数据状态 */
    @Excel(name = "数据状态")
    private Integer status;

    public void setOssId(Long ossId) 
    {
        this.ossId = ossId;
    }

    public Long getOssId() 
    {
        return ossId;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setOriginalName(String originalName) 
    {
        this.originalName = originalName;
    }

    public String getOriginalName() 
    {
        return originalName;
    }
    public void setFileSuffix(String fileSuffix) 
    {
        this.fileSuffix = fileSuffix;
    }

    public String getFileSuffix() 
    {
        return fileSuffix;
    }
    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setService(String service) 
    {
        this.service = service;
    }

    public String getService() 
    {
        return service;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ossId", getOssId())
            .append("fileName", getFileName())
            .append("originalName", getOriginalName())
            .append("fileSuffix", getFileSuffix())
            .append("fileSize", getFileSize())
            .append("url", getUrl())
            .append("source", getSource())
            .append("service", getService())
            .append("delFlag", getDelFlag())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
